package one.chchy.dp_demo.enums;

import lombok.Getter;

public enum DeviceType {
    Camera("Camera", 0),
    Image("Image", 1),
    ;

    @Getter
    public String Name;
    @Getter
    public int Value;

    DeviceType(String name, int value) {
        Name = name;
        Value = value;
    }

    public static DeviceType get(Long value) {
        return DeviceType.values()[value.intValue()];
    }
}
